package com.wechat.shopping.mall.account.service;

import com.wechat.shopping.mall.account.domain.SaveWechatUserParam;
import com.wechat.shopping.mall.util.ResponseMessage;

/**
 * 用户操作
 */
public interface UserInfoService {
    /**
     * 创建微信用户
     * @param user
     * @return
     */
    ResponseMessage saveUser(SaveWechatUserParam user);

    /**
     * 编辑用户资料
     * @param user
     * @param userId
     * @return
     */
    int updateUser(SaveWechatUserParam user, Integer userId);

    /**
     * 注销账号
     * @param userId
     * @return
     */
    int deleteUser(Integer userId);
}
